package com.zz.test.feign;

import com.ruoyi.common.core.domain.R;
import com.zz.dto.InventoryResponse;
import com.zz.test.feign.fallback.InventoryServiceFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;

@FeignClient(contextId = "inventoryService", value = "zz-biz", fallbackFactory = InventoryServiceFallbackFactory.class)
public interface InventoryService {
    @PostMapping("/inventory/isinstock")
    R<List<InventoryResponse>> isInStock(@RequestBody List<Map<String,Object>> skuCode);
}
